﻿using DAL;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace BLL
{
   public class RenyuanBLL
    {
       RenyuanDAL dal = new DAL.RenyuanDAL();
        /// <summary>
        /// 展示人员信息
        /// </summary>
        /// <returns></returns>
        public List<Staff> YGxinxi()
        {
            return new RenyuanDAL().YGxinxi();
        }
        ///人员信息修改
        public int updateRen(Staff m)
        {
            return dal.updateRen(m);
        }
         ///人员信息添加
        public int RenAdd(Models.Staff user)
        {
            return dal.RenAdd(user);
        }
          /// <summary>
        /// 查询人员信息
        /// </summary>
        /// <param name="Staff_Name"></param>
        /// <returns></returns>
        public List<Staff> cha(string Staff_Name)
        {
            return dal.cha(Staff_Name);
        }
        /// <summary>
        /// 提交奖惩
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int Jc(奖惩 m)
        {
            return dal.Jc(m);
        }
         /// <summary>
        /// 档案显示
        /// </summary>
        /// <returns></returns>
        public List<DangAn> DangAnIndex()
        {
            return dal.DangAnIndex();
        }
        /// <summary>
        /// 档案详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DangAn DnagAnFT(int id)
        {
            return dal.DnagAnFT(id);
        }
          /// <summary>
        /// 添加人员档案
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int DangAnAdd(DangAn m)
        {
            return dal.DangAnAdd(m);
        }
        /// <summary>
        /// 删除人员档案
        /// </summary>
        /// <param name="DangAn_ID"></param>
        /// <returns></returns>
        public int DangAnDel(string id)
        {
            return dal.DangAnDel(id);
        }
          /// <summary>
         /// 几条奖惩信息未处理
        /// </summary>
       /// <returns></returns>
        public int Tiaoshu()
        {
            return dal.Tiaoshu();
        }
          /// 合同显示
        public List<Contracts> ContractsIndex()
        {
            return dal.ContractsIndex();
        }
         //查看合同详情
        public Contracts ContractsFT(int id)
        {
            return dal.ContractsFT(id);
        }
        //添加员工合同
        public int ContractsAdd(Contracts m)
        {
            return dal.ContractsAdd(m);
        }
       //奖惩审批页面
        public List<奖惩> Jcindex()
        {
            return dal.Jcindex();
        }
        //审批详情
        public 奖惩 Jcshenpi(int id)
        {
            return dal.Jcshenpi(id);
        }
        ///审批奖惩
        public int TG(int id)
        {
            return dal.JJ(id);
        }
         ///审批拒绝
        public int JJ(int id)
        {
            return dal.JJ(id);
        }
        //奖惩显示
        public List<奖惩> JiangchengIndex()
        {
            return dal.JiangchengIndex();
        }
    }
}
